home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / osi / isode / vmsisode / vmsisode80_tar.Z / vmsisode80_tar / sockit / gccinclude / signal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-30  |  2.0 KB  |  72 lines

  1. /*
  2.  *    VAX-11 "C" runtime compatible signal definitions
  3.  */
  4.  
  5. #ifndef    NSIG
  6. #define NSIG    32        /* number of signals */
  7.  
  8. #define    SIGHUP    1        /* hangup */
  9. #define    SIGINT    2        /* interrupt */
  10. #define    SIGQUIT    3        /* quit */
  11. #define    SIGILL    4        /* illegal instruction (not reset when caught) */
  12. #define    ILL_RESAD_FAULT    0x0    /* reserved addressing mode fault */
  13. #define    ILL_PRIVIN_FAULT 0x1    /* privilidged instruction fault */
  14. #define    ILL_RESOP_FAULT    0x2    /* reserved operand fault */
  15. #define    SIGTRAP    5        /* trace trap (not reset when caught) */
  16. #define    SIGIOT    6        /* IOT instruction */
  17. #define    SIGEMT    7        /* EMT instruction */
  18. #define    SIGFPE    8        /* floating point exception */
  19. #define    FPE_INTOVF_TRAP 0x1
  20. #define    FPE_INTDIV_TRAP 0x2
  21. #define    FPE_FLTOVF_TRAP 0x3
  22. #define    FPE_FLTDIV_TRAP 0x4
  23. #define    FPE_FLTUND_TRAP 0x5
  24. #define    FPE_DECOVF_TRAP 0x6
  25. #define    FPE_SUBRNG_TRAP 0x7
  26. #define FPE_FLTOVF_FAULT 0x8
  27. #define FPE_FLTDIV_FAULT 0x9
  28. #define FPE_FLTUND_FAULT 0xa
  29. #define    SIGKILL    9        /* kill (cannot be caught or ignored) */
  30. #define    SIGBUS    10        /* bus error */
  31. #define    SIGSEGV    11        /* segmentation violation */
  32. #define SIGSYS    12        /* bad argument to system call */
  33. #define SIGPIPE    13        /* write to a pipe with no one to read it */
  34. #define SIGALRM    14        /* alarm clock */
  35. #define SIGTERM    15        /* software termination signal from kill */
  36.  
  37. #define SIGURG    16
  38. #define SIGTSTP    18
  39. #define SIGCHLD    20
  40. #define SIGIO    23
  41.  
  42.  
  43. struct    sigvec
  44. {
  45.     int    (*sv_handler)();    /* handler address */
  46.     int    sv_mask;        /* mask of signals to be blocked */
  47.     int    sv_onstack;        /* flag to indicate signal stack */
  48. };
  49.  
  50. struct    sigcontext
  51. {
  52.     int    sc_onstack;        /* signal stack flag to restore */
  53.     int    sc_mask;        /* signal mask to restore */
  54.     int    sc_sp;            /* stack pointerto restore */
  55.     int    sc_pc;            /* pc to return to */
  56.     int    sc_ps;            /* psl to restore */
  57. };
  58.  
  59. struct    sigstack
  60. {
  61.     char    *ss_sp;            /* signal stack pointer */
  62.     int    ss_onstack;        /* current status */
  63. };
  64.  
  65. int    (*signal())(),(*ssignal())();
  66.  
  67. #define    BADSIG    (int (*)())-1
  68. #define    SIG_DFL    (int (*)())0    /* default */
  69. #define SIG_IGN    (int (*)())1    /* ignore */
  70.  
  71. #endif    NSIG
  72.